#include "stdafx.h"
#include "BinaryJsonTypes.h"
/* take a BSONType and return the name of that type as a char* */
const char* typeName (BinaryJsonType type) {
	switch (type) {

	case EOO: return "EOO";
	case NumberDouble: return "NumberDouble";
	case JSONString: return "String";
	case Object: return "Object";
	case JSONArray: return "Array";
	case JSONBool: return "Bool";
	case jstNULL: return "NULL";
	case NumberInt: return "NumberInt32";
	case NumberLong: return "NumberLong64";
	default: return "Invalid";

	}
}